package com.example.mapper;

import com.example.entity.Customer;
import com.example.entity.Emp;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

@Mapper
public interface LoginMapper {
    @Select("select * from mall_backend.emp where name = #{name} and password = #{password}")
    Emp empLogin(Emp emp);

    @Select("select * from mall_backend.customer where name = #{name} and password = #{password}")
    Customer customerLogin(Customer customer);
}
